package ui.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.DaiKanListBean;

import java.util.List;

public class ChildAdapter extends BaseQuickAdapter<DaiKanListBean.HousingFollowsBean, BaseViewHolder> {

    public ChildAdapter() {
        super(R.layout.item_with_glass_note);
    }

    public void insertItem(int i) {
        notifyItemInserted(getData().size());
        notifyItemRangeChanged(i, getData().size() - i);
    }

    public void removeItem(int i) {
        getData().remove(i);
        notifyItemRemoved(i);
        notifyDataSetChanged();
    }

    @Override
    protected void convert(BaseViewHolder helper, DaiKanListBean.HousingFollowsBean item) {

    }
}
